﻿<div ng-controller="tokenTransferController">
    <div class="wrapper border-bottom white-bg page-heading">
        <div class="col-lg-pull-12">
            <ol class="breadcrumb">
                <li>提现审核</li>
            </ol>
        </div>
    </div>
    <form class="form-horizontal row">
        <div class="form-group">
            <div class="col-md-4">
                <label class="col-sm-4 control-label">名称</label>
                <div class="col-sm-7">
                    <input name="name" type="text" class="form-control input-sm" ng-model="query.name" placeholder="请输入昵称或手机号">
                </div>
            </div>
            <div class="col-sm-4">
                <label class="col-sm-4 control-label">时间</label>
                <div class="col-sm-8">
                    <div date class="input-group date">
                        <input class="form-control input-sm" ng-model="query.start_time">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <label class="col-sm-1 control-label">至</label>
                <div class="col-sm-8">
                    <div date class="input-group date">
                        <input class="form-control input-sm" ng-model="query.end_time">
                        <span class="input-group-addon"><span class="glyphicon glyphicon-calendar"></span></span>
                    </div>
                </div>
            </div>
           
        </div>
        <div class="form-group">
            <div class="col-sm-4">
                <label class="col-sm-4 control-label">状态</label>
                <div class="col-sm-8">
                    <div class="col-sm-12">
                        <select name="status" class="form-control input-sm" ng-model="query.status">
                            <option value="">请选择</option>
                            <option value="0">待审核</option>
                            <option value="1">已通过未付款</option>
                            <option value="2">已通过已付款</option>
                            <option value="3">未通过</option>
                            <option value="4">处理中</option>
                            <option value="5">打款失败</option>
                        </select>
                    </div>
                </div>
            </div>
            <div class="col-sm-4">
                <div class="col-sm-offset-4 col-sm-8">
                    <button class="btn btn-primary btn-sm" ng-click="search(query)"><i class="fa fa-search"></i> 查询</button>
                </div>
            </div>
        </div>
    </form>
    <table style="table-layout:fixed;" class="table table-hover m-t-md">
        <thead>
            <tr style="background-color: #f7f7f9;">
                <th>序号</th>
                <th width="180">订单号</th>
                <th width="100">昵称|账号</th>
                <th>提现金额(￥)</th>
                <th>手续费(每笔)</th>
                <th>实际到账金额</th>
                <th>户名</th>
                <th width="150">银行卡</th>
                <th>银行名称</th>
                <th>支行地址</th>
                <th>提交时间</th>
                <th>提现类型</th>
                <th>状态</th>
                <th width="65">操作</th>
            </tr>
        </thead>
        <tbody ng-repeat="item in model.rows">
            <tr>
                <td>{{$index+1}}</td>
                <td>
                    {{item.order_no}}
                </td>
                <td>{{item.merchant_name}}<br />{{item.merchant_mobile}}</td>
                <td>
                    {{item.transfer_amount}}
                </td>
                <td>
                    {{item.settle_amount}}
                </td>
                <td>
                    {{item.amount}}
                </td>
                <td>
                    {{item.account_name}}
                </td>
                <td>
                    {{item.account_no}}
                </td>
                <td>
                    {{item.bank_name}}
                </td>
                <td>{{item.branch_address}}</td>
                <td>
                    {{item.apply_time}}
                </td>
                <td>
                    {{item.transfer_type_desc}}
                </td>
                <td style="{{item.status==0?'color:#f44336':item.status==3?'color:#4caf50':'color:#0000ff'}}">{{item.status_desc}} </td>

                <td>
                    <a ng-if="item.status==0" class="btn btn-primary btn-xs" ui-sref="app.token_transfer.audit({id:{{item.id}}})"><i class="fa fa-cog"></i> 审核</a>
                    <a class="btn btn-primary btn-xs" ui-sref="app.token_transfer.detail({id:{{item.id}}})"><i class="fa fa-cog"></i> 查看</a>
                </td>
            </tr>
        </tbody>
    </table>
    <div class="row">
        <div class="col-md-12">
            <uib-pagination total-items="model.total_result" items-per-page="model.size" ng-model="model.page" num-pages="model.total_pages"
                            ng-change="search_page(model.page)" class="pagination-sm" boundary-links="true" boundary-link-numbers="true" max-size="20"
                            previous-text="&lsaquo;" next-text="&rsaquo;" first-text="&laquo;" last-text="&raquo;"></uib-pagination>
            <span class="pull-right" style="margin: 30px 0px 20px 0px">共{{model.total_result}} 当前：{{model.page}}/{{model.total_pages}}</span>
        </div>
    </div>
</div>
